package com.ly.common.constant;

/**
 * 消息返回通用枚举类
 * @Auther: lzw
 * @Date: 2018/6/4
 */
public enum MessageConstant {
    SUCCESS("000000", "操作成功"),
    FAILURE("111111","操作失败"),
    ERR_PARAMETER("222222","参数错误"),
    FAIL_QUERY("333333", "未获取到数据"),
    LLLEGAL_DATA("444444", "不合法的数据"),
    SYS_ERROR("999999","系统异常");

    private String code;
    private String desc;

    MessageConstant(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }

}
